package com.wjwh.heaven.upms.api.feign;


import com.wjwh.heaven.common.core.utils.Result;
import com.wjwh.heaven.upms.api.pojo.entity.SdUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author dm
 * @since 2021-02-26
 */
@FeignClient(contextId = "sdUser",value = "heaven-upms")
public interface RemoteSdUserService {


    /**
     * 获取用户信息
     * @param userId
     * @return
     */
    @GetMapping(value = "/api/user/{userId}")
    Result<SdUser> userInfoByUserId(@PathVariable String userId);
}
